strconv.decimal.nd (field)
52 uses
strconv (current package)
atof.go#L104: b.dp = b.nd
atof.go#L109: if s[i] == '0' && b.nd == 0 { // ignore leading zeros
atof.go#L113: if b.nd < len(b.d) {
atof.go#L114: b.d[b.nd] = s[i]
atof.go#L115: b.nd++
atof.go#L127: b.dp = b.nd
atof.go#L319: if d.nd == 0 {
decimal.go#L16: nd int // number of digits used
decimal.go#L23: n := 10 + a.nd
decimal.go#L34: case a.nd == 0:
decimal.go#L44: w += copy(buf[w:], a.d[0:a.nd])
decimal.go#L46: case a.dp < a.nd:
decimal.go#L51: w += copy(buf[w:], a.d[a.dp:a.nd])
decimal.go#L55: w += copy(buf[w:], a.d[0:a.nd])
decimal.go#L56: w += digitZero(buf[w : w+a.dp-a.nd])
decimal.go#L72: for a.nd > 0 && a.d[a.nd-1] == '0' {
decimal.go#L73: a.nd--
decimal.go#L75: if a.nd == 0 {
decimal.go#L95: a.nd = 0
decimal.go#L97: a.d[a.nd] = buf[n]
decimal.go#L98: a.nd++
decimal.go#L100: a.dp = a.nd
decimal.go#L117: if r >= a.nd {
decimal.go#L120: a.nd = 0
decimal.go#L137: for ; r < a.nd; r++ {
decimal.go#L159: a.nd = w
decimal.go#L271: if prefixIsLessThan(a.d[0:a.nd], leftcheats[k].cutoff) {
decimal.go#L275: r := a.nd // read index
decimal.go#L276: w := a.nd + delta // write index
decimal.go#L306: a.nd += delta
decimal.go#L307: if a.nd >= len(a.d) {
decimal.go#L308: a.nd = len(a.d)
decimal.go#L317: case a.nd == 0:
decimal.go#L336: if nd < 0 || nd >= a.nd {
decimal.go#L339: if a.d[nd] == '5' && nd+1 == a.nd { // exactly halfway - round to even
decimal.go#L355: if nd < 0 || nd >= a.nd {
decimal.go#L367: if nd < 0 || nd >= a.nd {
decimal.go#L370: a.nd = nd
decimal.go#L376: if nd < 0 || nd >= a.nd {
decimal.go#L385: a.nd = i + 1
decimal.go#L393: a.nd = 1
decimal.go#L405: for i = 0; i < a.dp && i < a.nd; i++ {
ftoa.go#L171: digs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}
ftoa.go#L194: digs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}
ftoa.go#L239: d.nd = 0
ftoa.go#L258: if exp > minexp && 332*(d.dp-d.nd) >= 100*(exp-int(flt.mantbits)) {
ftoa.go#L314: if mi >= d.nd {
ftoa.go#L319: if li >= 0 && li < lower.nd {
ftoa.go#L327: if ui < upper.nd {
ftoa.go#L334: okdown := l != m || inclusive && li+1 == lower.nd
ftoa.go#L355: okup := upperdelta > 0 && (inclusive || upperdelta > 1 || ui+1 < upper.nd)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |